package com.example.demo.mapper;

import com.example.demo.model.Book;
import com.example.demo.model.Borrow;
import com.example.demo.model.Reader;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ReaderMapper {
    Reader findReader(Integer reader_id);
    Integer modifyReader(Reader reader);

    Book queryBook(String book_name);

    List<Borrow> queryBorrow(Integer readerId);

    List<Reader> getReaderList();

    Integer addReader(Reader reader);

    Integer deleteReader(Integer reader_id);
}
